/*******************************************************************************
 * SDP Project AUT 2012
 * 
 *                ***********Driving Assistant************
 * Team:
 * Gisela, Deidre, Brijesh, Robert
 * 
 * This class has the main method which initializes the UI.
 * 
 * @version 1.0
 * 
 * Copyright (c) 2012 by DrivingAssistant Team, Inc., All Rights Reserved.
 * 
 ******************************************************************************/
package com.drivingAssistant.main;

import com.drivingAssistant.gui.DrivingAssistantGUI;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.sound.sampled.LineUnavailableException;

/**
 *
 * Driving Assistant UI main class
 * 
 */
public class DrivingAssistantMain {
    
    /**
     * main method to initialize the Driving Assistant components.
     * 
     * @param args 
     */
    public static void main(String[] args) throws LineUnavailableException {
        final DrivingAssistantGUI da = new DrivingAssistantGUI();
        java.awt.EventQueue.invokeLater(new Runnable(){

            @Override
            public void run() {
                try {
                    da.pack();
                    da.setDefaultCloseOperation(DrivingAssistantGUI.DISPOSE_ON_CLOSE);
                    da.setLocationRelativeTo(null);
                    da.setVisible(true);
                } catch (Throwable ex) {
                    Logger.getLogger(DrivingAssistantMain.class.getName())
                            .log(Level.SEVERE, null, ex);
                }
            }
            
        });
    }
    
}
